package com.nbjtjc.safe.api.safe;

import com.nbjtjc.safe.bean.Result;
import com.nbjtjc.safe.model.safe.SafeEnterprise;
import com.nbjtjc.safe.model.safe.SafeEnterprisePlan;
import com.nbjtjc.safe.service.safe.EnterpriseServiceImpl;
import com.nbjtjc.safe.service.safe.SafeEnterprisePlanServiceImpl;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/safe/enterprisePlan")
@CrossOrigin("*")
public class EnterprisePlanController {

    @Autowired
    private SafeEnterprisePlanServiceImpl safeEnterprisePlanService;


    @PostMapping(value = "/add")
    public Result addOrUpdate(@ApiParam @RequestBody SafeEnterprisePlan safeEnterprisePlan){
       return  safeEnterprisePlanService.addEnterprisePlan(safeEnterprisePlan);
    }


}
